'use strict';

const Service = require('egg').Service;

class QuestionService extends Service {
    async list() {
        return await this.app.mysql.query('select title,options,type from questions')
    }

    async answer(){
        return await this.app.mysql.query('select answer from questions')
    }
}

module.exports = QuestionService;
